<?php
namespace app\index\model;
use think\Db;
use think\Model;

class School extends Model
{
	//专科学校查询
    public static function college($where){
    	 $collegeList=Db::name('school')
    	           ->where($where) 
                   ->field('id as universityId,name as university')
                   ->limit(5)
    	           ->select();
         return $collegeList;
    }
    //本科学校查询
    public static function regular($where){
    	 $regular=Db::name('school')
    	           ->where($where) 
                   ->field('id as universityId,name as university')
                   ->limit(5)
    	           ->select();
         return $regular;
    }
}    
